package score;

/**
 * @Author admin
 * @Date 2019/4/2 15:03
 * 标准类：属性，set/get方法，构造方法（重载）
 * 重写toString方法
 */
public class User {
    private String name;
    private String password;
    private String email;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
    public User(){

    }
    public User(String name,String password){
        this.name=name;
        this.password=password;
        this.email=email;
    }

    public String getName() {
        return name;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }

    public String getPassword() {
        return password;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
